<template>
    <div class="newsinfo">
        <h3 class="title">xx</h3>
        <p class="subtitle">
            <span>发表时间：</span>
            <span>点击0次</span>
        </p>
        <div class="content">

        </div>
    </div>
</template>
<script>
    export default {
        data(){
            return{
                detail:{}
            }
        },
        created() {
            this.getDetiil();
        }
        ,methods:{
            getDetiil(){
              var id=this.$route.query.id;
              this.$http.get('api/getDetail?id='+id).then(d=>{
                  if(d.status==200){
                     this.detail=d.body;
                  }
              })
            }
        }
    }
</script>
<style lang="less">
    .newinfo{
        padding: 0 4px;
        .title{
            font-size: 14px;
            text-align: center;
            margin: 15px 0;
            color: #e9606c;

        }
        .subtitle{
            font-size: 13px;
            color: #2ac845;
            display: flex;
            justify-content: space-between;

        }
        .content {
            img {
                width: 100%;
            }
        }
    }
</style>